package com.thewell79.areadiary.fragment;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
import android.widget.TextView;

import com.android.volley.Request;
import com.android.volley.Response;
import com.navercorp.volleyextensions.volleyer.Volleyer;
import com.thewell79.areadiary.R;

import static com.navercorp.volleyextensions.volleyer.Volleyer.*;

/**
 * Created by THEWELL-LOBBY on 2015-04-28.
 */
public class volleyerTestFragment extends Fragment {

    private static final String HOST = "http://shinheungco.iptime.org/test/";
    private TextView url, header, body;

    private EditText edit_param;

    private Response.Listener<String> stringListener = new Response.Listener<String>() {
        @Override
        public void onResponse(String response) {
            body.setText(response);
        }
    };


    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {

        View v = inflater.inflate(R.layout.volleyer_test, container, false);

        url = (TextView) v.findViewById(R.id.text_url);
        header = (TextView) v.findViewById(R.id.text_header);
        body = (TextView) v.findViewById(R.id.text_body);

        edit_param = (EditText) v.findViewById(R.id.edit_param);

        return v;
    }

    @Override
    public void onActivityCreated(@Nullable Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);


    }
}
